package com.shine.icis.hbean;

import java.io.Serializable;

import com.shine.icis.util.Tools;

public class StockCheckProcStatus implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3662405149335236166L;
	
	private Integer id;
	private Integer etlProcID;
	private Integer busiDate;
	private String  procStatus;
	private Integer updateDate;//操作日期
	private Integer updateTime;//操作时间
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getEtlProcID(){
		return etlProcID;
	}
	public void setEtlProcID(Integer etlProcID){
		this.etlProcID = etlProcID;
	}
	public Integer getBusiDate() {
		return busiDate;
	}
	public void setBusiDate(Integer busiDate) {
		this.busiDate = busiDate;
	}
	public String getProcStatus() {
		return procStatus;
	}
	public void setProcStatus(String procStatus) {
		this.procStatus = procStatus;
	}
	public Integer getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Integer updateDate) {
		this.updateDate = updateDate;
	}
	public Integer getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Integer updateTime) {
		this.updateTime = updateTime;
	}
	public String getFormatUpdateTime() {
		StringBuffer sb = new StringBuffer();
		sb.append(updateDate);
		if (sb.length() != 8) {
			return "";
		}
		sb.insert(6, "-").insert(4, "-");
		//121200 -> 12:12:00
		StringBuffer sbt = new StringBuffer();
		sbt.append(Tools.getFixedNum(updateTime, 6));
		sbt.insert(4, ":").insert(2, ":").toString();
		
		return sb.append(" ").append(sbt).toString();
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final StockCheckProcStatus other = (StockCheckProcStatus) obj;
		if (id == null) {
//			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	
	
	
}
